Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

181 - Setup Cypress #182

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

181 - Setup Cypress #182

wants to merge 3 commits into from

Conversation

robinlarsson
Copy link
Collaborator

@robinlarsson robinlarsson commented Mar 25, 2021

#181

Run with:
npm run cypress:open

https://www.cypress.io/

@robinlarsson robinlarsson requested a review from Zomis March 25, 2021 20:39
@robinlarsson robinlarsson self-assigned this Mar 25, 2021
@@ -0,0 +1,2 @@
export const BASE_URL = 'http://localhost:8080'
export const GUEST_TOKEN = 'C3qH3VVmoqR/rbxJIiVys1jW5jE0bDtuixWVorDfJhE=';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upps. Public now and 4-ever.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The guest token can easily be changed later

games-vue-client/cypress/integration/gameList.spec.js Outdated Show resolved Hide resolved
games-vue-client/cypress/fixtures/example.json Outdated Show resolved Hide resolved
@@ -0,0 +1,2 @@
export const BASE_URL = 'http://localhost:8080'
export const GUEST_TOKEN = 'C3qH3VVmoqR/rbxJIiVys1jW5jE0bDtuixWVorDfJhE=';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The guest token can easily be changed later

@robinlarsson robinlarsson added the build-and-test Issues related to building the project and all kinds of automatic tests label Mar 25, 2021
@robinlarsson robinlarsson changed the base branch from master to main April 8, 2021 18:40
@Zomis
Copy link
Owner

Zomis commented Jan 31, 2022

Sorry for taking so long to look at this!

If I'm not mistaken, Cypress is a tool for automated testing, but how does it differ from all the other tools for frontend testing out there?

Also, how to run this? Is it npm run cypress:open ?

@robinlarsson
Copy link
Collaborator Author

Sorry for taking so long to look at this!

If I'm not mistaken, Cypress is a tool for automated testing, but how does it differ from all the other tools for frontend testing out there?

Also, how to run this? Is it npm run cypress:open ?

Cypress, TestCafé and Protractor are the tools that I have most experience with.

Cypress seems faster, more stable, good tools, bigger community, popularity.

Run with npm run cypress:open

At my current assignment we use TestCafé, pretty similar to Cypress:
https://testcafe.io/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-and-test Issues related to building the project and all kinds of automatic tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants